<html>
<head><meta charset="utf-8"><title>pretty prenting for debug!() · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/pretty.20prenting.20for.20debug!().html">pretty prenting for debug!()</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="160799938"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/pretty%20prenting%20for%20debug%21%28%29/near/160799938" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> ange <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/pretty.20prenting.20for.20debug!().html#160799938">(Mar 14 2019 at 16:52)</a>:</h4>
<p>How come {:#?} isn't used more often when printing out values in debug printouts? As a beginner with rustc, I find that I often need to change the debug format for the things I'm interested in at any given time (and use grep invocations that are somewhat smarter about multi-line output). Has this ever come up before? Is it something that would annoy more experienced developers?</p>



<a name="160800247"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/pretty%20prenting%20for%20debug%21%28%29/near/160800247" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> ange <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/pretty.20prenting.20for.20debug!().html#160800247">(Mar 14 2019 at 16:56)</a>:</h4>
<p>I should mention that in my previous exposure to a compiler-y project, I used folding markers so that the output from large objects/tables only took one line, but could always expand it in my editor to see the full object</p>



<a name="160800260"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/pretty%20prenting%20for%20debug%21%28%29/near/160800260" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> ange <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/pretty.20prenting.20for.20debug!().html#160800260">(Mar 14 2019 at 16:56)</a>:</h4>
<p>(a hack, of course)</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>